<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="共几页" prop="totalPage">
        <el-input v-model="queryParams.totalPage" placeholder="请输入共几页" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="第几页" prop="page">
        <el-input v-model="queryParams.page" placeholder="请输入第几页" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="检测单位名称" prop="jiancdwmc">
        <el-input v-model="queryParams.jiancdwmc" placeholder="请输入检测单位名称" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="记录编号" prop="jilbh">
        <el-input v-model="queryParams.jilbh" placeholder="请输入记录编号" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="工程名称" prop="gongcmc">
        <el-input v-model="queryParams.gongcmc" placeholder="请输入工程名称" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="工程部位/用途" prop="gongcbwyt">
        <el-input v-model="queryParams.gongcbwyt" placeholder="请输入工程部位/用途" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品名称" prop="yangpmc">
        <el-input v-model="queryParams.yangpmc" placeholder="请输入样品名称" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品编号" prop="yangpbh">
        <el-input v-model="queryParams.yangpbh" placeholder="请输入样品编号" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品数量" prop="yangpsl">
        <el-input v-model="queryParams.yangpsl" placeholder="请输入样品数量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品状态" prop="yangpzt">
        <el-input v-model="queryParams.yangpzt" placeholder="请输入样品状态" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品时间" prop="yangpsj">
        <el-input v-model="queryParams.yangpsj" placeholder="请输入样品时间" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="试验检测日期" prop="shiyjcrq">
        <el-input v-model="queryParams.shiyjcrq" placeholder="请输入试验检测日期" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="试验条件温度" prop="shiytjwd">
        <el-input v-model="queryParams.shiytjwd" placeholder="请输入试验条件温度" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="试验条件湿度" prop="shiytjsd">
        <el-input v-model="queryParams.shiytjsd" placeholder="请输入试验条件湿度" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="检测依据" prop="jiancyj">
        <el-input v-model="queryParams.jiancyj" placeholder="请输入检测依据" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="判定依据" prop="pandyj">
        <el-input v-model="queryParams.pandyj" placeholder="请输入判定依据" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="主要仪器设备名称及编号" prop="zhuyyqsbmcjbh">
        <el-input v-model="queryParams.zhuyyqsbmcjbh" placeholder="请输入主要仪器设备名称及编号" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="取样地点" prop="quydd">
        <el-input v-model="queryParams.quydd" placeholder="请输入取样地点" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="代表数量" prop="daibsl">
        <el-input v-model="queryParams.daibsl" placeholder="请输入代表数量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="规格牌号" prop="guigxh">
        <el-input v-model="queryParams.guigxh" placeholder="请输入规格牌号" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="批号" prop="pih">
        <el-input v-model="queryParams.pih" placeholder="请输入批号" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="生产厂家" prop="shengccj">
        <el-input v-model="queryParams.shengccj" placeholder="请输入生产厂家" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="公称直径1(mm)" prop="gongczj1">
        <el-input v-model="queryParams.gongczj1" placeholder="请输入公称直径1(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="公称截面积1(mm²)" prop="gongcjmj1">
        <el-input v-model="queryParams.gongcjmj1" placeholder="请输入公称截面积1(mm²)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度11(mm)" prop="yangpcd11">
        <el-input v-model="queryParams.yangpcd11" placeholder="请输入样品长度11(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度12(mm)" prop="yangpcd12">
        <el-input v-model="queryParams.yangpcd12" placeholder="请输入样品长度12(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度13(mm)" prop="yangpcd13">
        <el-input v-model="queryParams.yangpcd13" placeholder="请输入样品长度13(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度14(mm)" prop="yangpcd14">
        <el-input v-model="queryParams.yangpcd14" placeholder="请输入样品长度14(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度15(mm)" prop="yangpcd15">
        <el-input v-model="queryParams.yangpcd15" placeholder="请输入样品长度15(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度总长度1(mm)" prop="yangpcdzcd1">
        <el-input v-model="queryParams.yangpcdzcd1" placeholder="请输入样品长度总长度1(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品重量1(g)" prop="yangpzl1">
        <el-input v-model="queryParams.yangpzl1" placeholder="请输入样品重量1(g)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="理论重量1(kg/m)" prop="lilzl1">
        <el-input v-model="queryParams.lilzl1" placeholder="请输入理论重量1(kg/m)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="重量偏差1(%)" prop="zhonglpc1">
        <el-input v-model="queryParams.zhonglpc1" placeholder="请输入重量偏差1(%)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="公称直径2(mm)" prop="gongczj2">
        <el-input v-model="queryParams.gongczj2" placeholder="请输入公称直径2(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="公称截面积2(mm²)" prop="gongcjmj2">
        <el-input v-model="queryParams.gongcjmj2" placeholder="请输入公称截面积2(mm²)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度21(mm)" prop="yangpcd21">
        <el-input v-model="queryParams.yangpcd21" placeholder="请输入样品长度21(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度22(mm)" prop="yangpcd22">
        <el-input v-model="queryParams.yangpcd22" placeholder="请输入样品长度22(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度23(mm)" prop="yangpcd23">
        <el-input v-model="queryParams.yangpcd23" placeholder="请输入样品长度23(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度24(mm)" prop="yangpcd24">
        <el-input v-model="queryParams.yangpcd24" placeholder="请输入样品长度24(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度25(mm)" prop="yangpcd25">
        <el-input v-model="queryParams.yangpcd25" placeholder="请输入样品长度25(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度总长度2(mm)" prop="yangpcdzcd2">
        <el-input v-model="queryParams.yangpcdzcd2" placeholder="请输入样品长度总长度2(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品重量2(g)" prop="yangpzl2">
        <el-input v-model="queryParams.yangpzl2" placeholder="请输入样品重量2(g)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="理论重量2(kg/m)" prop="lilzl2">
        <el-input v-model="queryParams.lilzl2" placeholder="请输入理论重量2(kg/m)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="重量偏差2(%)" prop="zhonglpc2">
        <el-input v-model="queryParams.zhonglpc2" placeholder="请输入重量偏差2(%)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="公称直径3(mm)" prop="gongczj3">
        <el-input v-model="queryParams.gongczj3" placeholder="请输入公称直径3(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="公称截面积3(mm²)" prop="gongcjmj3">
        <el-input v-model="queryParams.gongcjmj3" placeholder="请输入公称截面积3(mm²)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度31(mm)" prop="yangpcd31">
        <el-input v-model="queryParams.yangpcd31" placeholder="请输入样品长度31(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度32(mm)" prop="yangpcd32">
        <el-input v-model="queryParams.yangpcd32" placeholder="请输入样品长度32(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度33(mm)" prop="yangpcd33">
        <el-input v-model="queryParams.yangpcd33" placeholder="请输入样品长度33(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度34(mm)" prop="yangpcd34">
        <el-input v-model="queryParams.yangpcd34" placeholder="请输入样品长度34(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度35(mm)" prop="yangpcd35">
        <el-input v-model="queryParams.yangpcd35" placeholder="请输入样品长度35(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品长度总长度3(mm)" prop="yangpcdzcd3">
        <el-input v-model="queryParams.yangpcdzcd3" placeholder="请输入样品长度总长度3(mm)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品重量3(g)" prop="yangpzl3">
        <el-input v-model="queryParams.yangpzl3" placeholder="请输入样品重量3(g)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="理论重量3(kg/m)" prop="lilzl3">
        <el-input v-model="queryParams.lilzl3" placeholder="请输入理论重量3(kg/m)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="重量偏差3(%)" prop="zhonglpc3">
        <el-input v-model="queryParams.zhonglpc3" placeholder="请输入重量偏差3(%)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="附加声明" prop="fujsm">
        <el-input v-model="queryParams.fujsm" placeholder="请输入附加声明" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="检测" prop="jianc">
        <el-input v-model="queryParams.jianc" placeholder="请输入检测" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="记录" prop="jil">
        <el-input v-model="queryParams.jil" placeholder="请输入记录" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="复核" prop="fuh">
        <el-input v-model="queryParams.fuh" placeholder="请输入复核" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="日期" prop="riq">
        <el-input v-model="queryParams.riq" placeholder="请输入日期" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="设备ids" prop="shebIds">
        <el-input v-model="queryParams.shebIds" placeholder="请输入设备ids" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="判断依据ids" prop="pandyjIds">
        <el-input v-model="queryParams.pandyjIds" placeholder="请输入判断依据ids" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="检测依据ids" prop="jiancyjIds">
        <el-input v-model="queryParams.jiancyjIds" placeholder="请输入检测依据ids" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['report_gc:gczlpcjlbBsInfo:add']">新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" v-hasPermi="['report_gc:gczlpcjlbBsInfo:edit']">修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" v-hasPermi="['report_gc:gczlpcjlbBsInfo:remove']">删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['report_gc:gczlpcjlbBsInfo:export']">导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="gczlpcjlbBsInfoList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="一份excel表格的唯一id(其他的excel主表，都应有此字段）" align="center" prop="excelId" v-if="true" />
      <el-table-column label="共几页" align="center" prop="totalPage" />
      <el-table-column label="第几页" align="center" prop="page" />
      <el-table-column label="检测单位名称" align="center" prop="jiancdwmc" />
      <el-table-column label="记录编号" align="center" prop="jilbh" />
      <el-table-column label="工程名称" align="center" prop="gongcmc" />
      <el-table-column label="工程部位/用途" align="center" prop="gongcbwyt" />
      <el-table-column label="样品名称" align="center" prop="yangpmc" />
      <el-table-column label="样品编号" align="center" prop="yangpbh" />
      <el-table-column label="样品数量" align="center" prop="yangpsl" />
      <el-table-column label="样品状态" align="center" prop="yangpzt" />
      <el-table-column label="样品时间" align="center" prop="yangpsj" />
      <el-table-column label="试验检测日期" align="center" prop="shiyjcrq" />
      <el-table-column label="试验条件温度" align="center" prop="shiytjwd" />
      <el-table-column label="试验条件湿度" align="center" prop="shiytjsd" />
      <el-table-column label="检测依据" align="center" prop="jiancyj" />
      <el-table-column label="判定依据" align="center" prop="pandyj" />
      <el-table-column label="主要仪器设备名称及编号" align="center" prop="zhuyyqsbmcjbh" />
      <el-table-column label="取样地点" align="center" prop="quydd" />
      <el-table-column label="代表数量" align="center" prop="daibsl" />
      <el-table-column label="规格牌号" align="center" prop="guigxh" />
      <el-table-column label="批号" align="center" prop="pih" />
      <el-table-column label="生产厂家" align="center" prop="shengccj" />
      <el-table-column label="公称直径1(mm)" align="center" prop="gongczj1" />
      <el-table-column label="公称截面积1(mm²)" align="center" prop="gongcjmj1" />
      <el-table-column label="样品长度11(mm)" align="center" prop="yangpcd11" />
      <el-table-column label="样品长度12(mm)" align="center" prop="yangpcd12" />
      <el-table-column label="样品长度13(mm)" align="center" prop="yangpcd13" />
      <el-table-column label="样品长度14(mm)" align="center" prop="yangpcd14" />
      <el-table-column label="样品长度15(mm)" align="center" prop="yangpcd15" />
      <el-table-column label="样品长度总长度1(mm)" align="center" prop="yangpcdzcd1" />
      <el-table-column label="样品重量1(g)" align="center" prop="yangpzl1" />
      <el-table-column label="理论重量1(kg/m)" align="center" prop="lilzl1" />
      <el-table-column label="重量偏差1(%)" align="center" prop="zhonglpc1" />
      <el-table-column label="公称直径2(mm)" align="center" prop="gongczj2" />
      <el-table-column label="公称截面积2(mm²)" align="center" prop="gongcjmj2" />
      <el-table-column label="样品长度21(mm)" align="center" prop="yangpcd21" />
      <el-table-column label="样品长度22(mm)" align="center" prop="yangpcd22" />
      <el-table-column label="样品长度23(mm)" align="center" prop="yangpcd23" />
      <el-table-column label="样品长度24(mm)" align="center" prop="yangpcd24" />
      <el-table-column label="样品长度25(mm)" align="center" prop="yangpcd25" />
      <el-table-column label="样品长度总长度2(mm)" align="center" prop="yangpcdzcd2" />
      <el-table-column label="样品重量2(g)" align="center" prop="yangpzl2" />
      <el-table-column label="理论重量2(kg/m)" align="center" prop="lilzl2" />
      <el-table-column label="重量偏差2(%)" align="center" prop="zhonglpc2" />
      <el-table-column label="公称直径3(mm)" align="center" prop="gongczj3" />
      <el-table-column label="公称截面积3(mm²)" align="center" prop="gongcjmj3" />
      <el-table-column label="样品长度31(mm)" align="center" prop="yangpcd31" />
      <el-table-column label="样品长度32(mm)" align="center" prop="yangpcd32" />
      <el-table-column label="样品长度33(mm)" align="center" prop="yangpcd33" />
      <el-table-column label="样品长度34(mm)" align="center" prop="yangpcd34" />
      <el-table-column label="样品长度35(mm)" align="center" prop="yangpcd35" />
      <el-table-column label="样品长度总长度3(mm)" align="center" prop="yangpcdzcd3" />
      <el-table-column label="样品重量3(g)" align="center" prop="yangpzl3" />
      <el-table-column label="理论重量3(kg/m)" align="center" prop="lilzl3" />
      <el-table-column label="重量偏差3(%)" align="center" prop="zhonglpc3" />
      <el-table-column label="附加声明" align="center" prop="fujsm" />
      <el-table-column label="检测" align="center" prop="jianc" />
      <el-table-column label="记录" align="center" prop="jil" />
      <el-table-column label="复核" align="center" prop="fuh" />
      <el-table-column label="日期" align="center" prop="riq" />
      <el-table-column label="设备ids" align="center" prop="shebIds" />
      <el-table-column label="判断依据ids" align="center" prop="pandyjIds" />
      <el-table-column label="检测依据ids" align="center" prop="jiancyjIds" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['report_gc:gczlpcjlbBsInfo:edit']">修改</el-button>
          <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['report_gc:gczlpcjlbBsInfo:remove']">删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />

    <!-- 添加或修改钢材重量偏差试验检测记录对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="共几页" prop="totalPage">
          <el-input v-model="form.totalPage" placeholder="请输入共几页" />
        </el-form-item>
        <el-form-item label="第几页" prop="page">
          <el-input v-model="form.page" placeholder="请输入第几页" />
        </el-form-item>
        <el-form-item label="检测单位名称" prop="jiancdwmc">
          <el-input v-model="form.jiancdwmc" placeholder="请输入检测单位名称" />
        </el-form-item>
        <el-form-item label="记录编号" prop="jilbh">
          <el-input v-model="form.jilbh" placeholder="请输入记录编号" />
        </el-form-item>
        <el-form-item label="工程名称" prop="gongcmc">
          <el-input v-model="form.gongcmc" placeholder="请输入工程名称" />
        </el-form-item>
        <el-form-item label="工程部位/用途" prop="gongcbwyt">
          <el-input v-model="form.gongcbwyt" placeholder="请输入工程部位/用途" />
        </el-form-item>
        <el-form-item label="样品名称" prop="yangpmc">
          <el-input v-model="form.yangpmc" placeholder="请输入样品名称" />
        </el-form-item>
        <el-form-item label="样品编号" prop="yangpbh">
          <el-input v-model="form.yangpbh" placeholder="请输入样品编号" />
        </el-form-item>
        <el-form-item label="样品数量" prop="yangpsl">
          <el-input v-model="form.yangpsl" placeholder="请输入样品数量" />
        </el-form-item>
        <el-form-item label="样品状态" prop="yangpzt">
          <el-input v-model="form.yangpzt" placeholder="请输入样品状态" />
        </el-form-item>
        <el-form-item label="样品时间" prop="yangpsj">
          <el-input v-model="form.yangpsj" placeholder="请输入样品时间" />
        </el-form-item>
        <el-form-item label="试验检测日期" prop="shiyjcrq">
          <el-input v-model="form.shiyjcrq" placeholder="请输入试验检测日期" />
        </el-form-item>
        <el-form-item label="试验条件温度" prop="shiytjwd">
          <el-input v-model="form.shiytjwd" placeholder="请输入试验条件温度" />
        </el-form-item>
        <el-form-item label="试验条件湿度" prop="shiytjsd">
          <el-input v-model="form.shiytjsd" placeholder="请输入试验条件湿度" />
        </el-form-item>
        <el-form-item label="检测依据" prop="jiancyj">
          <el-input v-model="form.jiancyj" placeholder="请输入检测依据" />
        </el-form-item>
        <el-form-item label="判定依据" prop="pandyj">
          <el-input v-model="form.pandyj" placeholder="请输入判定依据" />
        </el-form-item>
        <el-form-item label="主要仪器设备名称及编号" prop="zhuyyqsbmcjbh">
          <el-input v-model="form.zhuyyqsbmcjbh" placeholder="请输入主要仪器设备名称及编号" />
        </el-form-item>
        <el-form-item label="取样地点" prop="quydd">
          <el-input v-model="form.quydd" placeholder="请输入取样地点" />
        </el-form-item>
        <el-form-item label="代表数量" prop="daibsl">
          <el-input v-model="form.daibsl" placeholder="请输入代表数量" />
        </el-form-item>
        <el-form-item label="规格牌号" prop="guigxh">
          <el-input v-model="form.guigxh" placeholder="请输入规格牌号" />
        </el-form-item>
        <el-form-item label="批号" prop="pih">
          <el-input v-model="form.pih" placeholder="请输入批号" />
        </el-form-item>
        <el-form-item label="生产厂家" prop="shengccj">
          <el-input v-model="form.shengccj" placeholder="请输入生产厂家" />
        </el-form-item>
        <el-form-item label="公称直径1(mm)" prop="gongczj1">
          <el-input v-model="form.gongczj1" placeholder="请输入公称直径1(mm)" />
        </el-form-item>
        <el-form-item label="公称截面积1(mm²)" prop="gongcjmj1">
          <el-input v-model="form.gongcjmj1" placeholder="请输入公称截面积1(mm²)" />
        </el-form-item>
        <el-form-item label="样品长度11(mm)" prop="yangpcd11">
          <el-input v-model="form.yangpcd11" placeholder="请输入样品长度11(mm)" />
        </el-form-item>
        <el-form-item label="样品长度12(mm)" prop="yangpcd12">
          <el-input v-model="form.yangpcd12" placeholder="请输入样品长度12(mm)" />
        </el-form-item>
        <el-form-item label="样品长度13(mm)" prop="yangpcd13">
          <el-input v-model="form.yangpcd13" placeholder="请输入样品长度13(mm)" />
        </el-form-item>
        <el-form-item label="样品长度14(mm)" prop="yangpcd14">
          <el-input v-model="form.yangpcd14" placeholder="请输入样品长度14(mm)" />
        </el-form-item>
        <el-form-item label="样品长度15(mm)" prop="yangpcd15">
          <el-input v-model="form.yangpcd15" placeholder="请输入样品长度15(mm)" />
        </el-form-item>
        <el-form-item label="样品长度总长度1(mm)" prop="yangpcdzcd1">
          <el-input v-model="form.yangpcdzcd1" placeholder="请输入样品长度总长度1(mm)" />
        </el-form-item>
        <el-form-item label="样品重量1(g)" prop="yangpzl1">
          <el-input v-model="form.yangpzl1" placeholder="请输入样品重量1(g)" />
        </el-form-item>
        <el-form-item label="理论重量1(kg/m)" prop="lilzl1">
          <el-input v-model="form.lilzl1" placeholder="请输入理论重量1(kg/m)" />
        </el-form-item>
        <el-form-item label="重量偏差1(%)" prop="zhonglpc1">
          <el-input v-model="form.zhonglpc1" placeholder="请输入重量偏差1(%)" />
        </el-form-item>
        <el-form-item label="公称直径2(mm)" prop="gongczj2">
          <el-input v-model="form.gongczj2" placeholder="请输入公称直径2(mm)" />
        </el-form-item>
        <el-form-item label="公称截面积2(mm²)" prop="gongcjmj2">
          <el-input v-model="form.gongcjmj2" placeholder="请输入公称截面积2(mm²)" />
        </el-form-item>
        <el-form-item label="样品长度21(mm)" prop="yangpcd21">
          <el-input v-model="form.yangpcd21" placeholder="请输入样品长度21(mm)" />
        </el-form-item>
        <el-form-item label="样品长度22(mm)" prop="yangpcd22">
          <el-input v-model="form.yangpcd22" placeholder="请输入样品长度22(mm)" />
        </el-form-item>
        <el-form-item label="样品长度23(mm)" prop="yangpcd23">
          <el-input v-model="form.yangpcd23" placeholder="请输入样品长度23(mm)" />
        </el-form-item>
        <el-form-item label="样品长度24(mm)" prop="yangpcd24">
          <el-input v-model="form.yangpcd24" placeholder="请输入样品长度24(mm)" />
        </el-form-item>
        <el-form-item label="样品长度25(mm)" prop="yangpcd25">
          <el-input v-model="form.yangpcd25" placeholder="请输入样品长度25(mm)" />
        </el-form-item>
        <el-form-item label="样品长度总长度2(mm)" prop="yangpcdzcd2">
          <el-input v-model="form.yangpcdzcd2" placeholder="请输入样品长度总长度2(mm)" />
        </el-form-item>
        <el-form-item label="样品重量2(g)" prop="yangpzl2">
          <el-input v-model="form.yangpzl2" placeholder="请输入样品重量2(g)" />
        </el-form-item>
        <el-form-item label="理论重量2(kg/m)" prop="lilzl2">
          <el-input v-model="form.lilzl2" placeholder="请输入理论重量2(kg/m)" />
        </el-form-item>
        <el-form-item label="重量偏差2(%)" prop="zhonglpc2">
          <el-input v-model="form.zhonglpc2" placeholder="请输入重量偏差2(%)" />
        </el-form-item>
        <el-form-item label="公称直径3(mm)" prop="gongczj3">
          <el-input v-model="form.gongczj3" placeholder="请输入公称直径3(mm)" />
        </el-form-item>
        <el-form-item label="公称截面积3(mm²)" prop="gongcjmj3">
          <el-input v-model="form.gongcjmj3" placeholder="请输入公称截面积3(mm²)" />
        </el-form-item>
        <el-form-item label="样品长度31(mm)" prop="yangpcd31">
          <el-input v-model="form.yangpcd31" placeholder="请输入样品长度31(mm)" />
        </el-form-item>
        <el-form-item label="样品长度32(mm)" prop="yangpcd32">
          <el-input v-model="form.yangpcd32" placeholder="请输入样品长度32(mm)" />
        </el-form-item>
        <el-form-item label="样品长度33(mm)" prop="yangpcd33">
          <el-input v-model="form.yangpcd33" placeholder="请输入样品长度33(mm)" />
        </el-form-item>
        <el-form-item label="样品长度34(mm)" prop="yangpcd34">
          <el-input v-model="form.yangpcd34" placeholder="请输入样品长度34(mm)" />
        </el-form-item>
        <el-form-item label="样品长度35(mm)" prop="yangpcd35">
          <el-input v-model="form.yangpcd35" placeholder="请输入样品长度35(mm)" />
        </el-form-item>
        <el-form-item label="样品长度总长度3(mm)" prop="yangpcdzcd3">
          <el-input v-model="form.yangpcdzcd3" placeholder="请输入样品长度总长度3(mm)" />
        </el-form-item>
        <el-form-item label="样品重量3(g)" prop="yangpzl3">
          <el-input v-model="form.yangpzl3" placeholder="请输入样品重量3(g)" />
        </el-form-item>
        <el-form-item label="理论重量3(kg/m)" prop="lilzl3">
          <el-input v-model="form.lilzl3" placeholder="请输入理论重量3(kg/m)" />
        </el-form-item>
        <el-form-item label="重量偏差3(%)" prop="zhonglpc3">
          <el-input v-model="form.zhonglpc3" placeholder="请输入重量偏差3(%)" />
        </el-form-item>
        <el-form-item label="附加声明" prop="fujsm">
          <el-input v-model="form.fujsm" placeholder="请输入附加声明" />
        </el-form-item>
        <el-form-item label="检测" prop="jianc">
          <el-input v-model="form.jianc" placeholder="请输入检测" />
        </el-form-item>
        <el-form-item label="记录" prop="jil">
          <el-input v-model="form.jil" placeholder="请输入记录" />
        </el-form-item>
        <el-form-item label="复核" prop="fuh">
          <el-input v-model="form.fuh" placeholder="请输入复核" />
        </el-form-item>
        <el-form-item label="日期" prop="riq">
          <el-input v-model="form.riq" placeholder="请输入日期" />
        </el-form-item>
        <el-form-item label="设备ids" prop="shebIds">
          <el-input v-model="form.shebIds" placeholder="请输入设备ids" />
        </el-form-item>
        <el-form-item label="判断依据ids" prop="pandyjIds">
          <el-input v-model="form.pandyjIds" placeholder="请输入判断依据ids" />
        </el-form-item>
        <el-form-item label="检测依据ids" prop="jiancyjIds">
          <el-input v-model="form.jiancyjIds" placeholder="请输入检测依据ids" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button size="small" :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
        <el-button size="small" @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listGczlpcjlbBsInfo, getGczlpcjlbBsInfo, delGczlpcjlbBsInfo, addGczlpcjlbBsInfo, updateGczlpcjlbBsInfo } from "@/api/report_gc/gczlpcjlbBsInfo";

export default {
  name: "GczlpcjlbBsInfo",
  data() {
    return {
      // 按钮loading
      buttonLoading: false,
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 钢材重量偏差试验检测记录表格数据
      gczlpcjlbBsInfoList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        totalPage: undefined,
        page: undefined,
        jiancdwmc: undefined,
        jilbh: undefined,
        gongcmc: undefined,
        gongcbwyt: undefined,
        yangpmc: undefined,
        yangpbh: undefined,
        yangpsl: undefined,
        yangpzt: undefined,
        yangpsj: undefined,
        shiyjcrq: undefined,
        shiytjwd: undefined,
        shiytjsd: undefined,
        jiancyj: undefined,
        pandyj: undefined,
        zhuyyqsbmcjbh: undefined,
        quydd: undefined,
        daibsl: undefined,
        guigxh: undefined,
        pih: undefined,
        shengccj: undefined,
        gongczj1: undefined,
        gongcjmj1: undefined,
        yangpcd11: undefined,
        yangpcd12: undefined,
        yangpcd13: undefined,
        yangpcd14: undefined,
        yangpcd15: undefined,
        yangpcdzcd1: undefined,
        yangpzl1: undefined,
        lilzl1: undefined,
        zhonglpc1: undefined,
        gongczj2: undefined,
        gongcjmj2: undefined,
        yangpcd21: undefined,
        yangpcd22: undefined,
        yangpcd23: undefined,
        yangpcd24: undefined,
        yangpcd25: undefined,
        yangpcdzcd2: undefined,
        yangpzl2: undefined,
        lilzl2: undefined,
        zhonglpc2: undefined,
        gongczj3: undefined,
        gongcjmj3: undefined,
        yangpcd31: undefined,
        yangpcd32: undefined,
        yangpcd33: undefined,
        yangpcd34: undefined,
        yangpcd35: undefined,
        yangpcdzcd3: undefined,
        yangpzl3: undefined,
        lilzl3: undefined,
        zhonglpc3: undefined,
        fujsm: undefined,
        jianc: undefined,
        jil: undefined,
        fuh: undefined,
        riq: undefined,
        shebIds: undefined,
        pandyjIds: undefined,
        jiancyjIds: undefined
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
        excelId: [{ required: true, message: "一份excel表格的唯一id(其他的excel主表，都应有此字段）不能为空", trigger: "blur" }],
        totalPage: [{ required: true, message: "共几页不能为空", trigger: "blur" }],
        page: [{ required: true, message: "第几页不能为空", trigger: "blur" }],
        jiancdwmc: [{ required: true, message: "检测单位名称不能为空", trigger: "blur" }],
        jilbh: [{ required: true, message: "记录编号不能为空", trigger: "blur" }],
        gongcmc: [{ required: true, message: "工程名称不能为空", trigger: "blur" }],
        gongcbwyt: [{ required: true, message: "工程部位/用途不能为空", trigger: "blur" }],
        yangpmc: [{ required: true, message: "样品名称不能为空", trigger: "blur" }],
        yangpbh: [{ required: true, message: "样品编号不能为空", trigger: "blur" }],
        yangpsl: [{ required: true, message: "样品数量不能为空", trigger: "blur" }],
        yangpzt: [{ required: true, message: "样品状态不能为空", trigger: "blur" }],
        yangpsj: [{ required: true, message: "样品时间不能为空", trigger: "blur" }],
        shiyjcrq: [{ required: true, message: "试验检测日期不能为空", trigger: "blur" }],
        shiytjwd: [{ required: true, message: "试验条件温度不能为空", trigger: "blur" }],
        shiytjsd: [{ required: true, message: "试验条件湿度不能为空", trigger: "blur" }],
        jiancyj: [{ required: true, message: "检测依据不能为空", trigger: "blur" }],
        pandyj: [{ required: true, message: "判定依据不能为空", trigger: "blur" }],
        zhuyyqsbmcjbh: [{ required: true, message: "主要仪器设备名称及编号不能为空", trigger: "blur" }],
        quydd: [{ required: true, message: "取样地点不能为空", trigger: "blur" }],
        daibsl: [{ required: true, message: "代表数量不能为空", trigger: "blur" }],
        guigxh: [{ required: true, message: "规格牌号不能为空", trigger: "blur" }],
        pih: [{ required: true, message: "批号不能为空", trigger: "blur" }],
        shengccj: [{ required: true, message: "生产厂家不能为空", trigger: "blur" }],
        gongczj1: [{ required: true, message: "公称直径1(mm)不能为空", trigger: "blur" }],
        gongcjmj1: [{ required: true, message: "公称截面积1(mm²)不能为空", trigger: "blur" }],
        yangpcd11: [{ required: true, message: "样品长度11(mm)不能为空", trigger: "blur" }],
        yangpcd12: [{ required: true, message: "样品长度12(mm)不能为空", trigger: "blur" }],
        yangpcd13: [{ required: true, message: "样品长度13(mm)不能为空", trigger: "blur" }],
        yangpcd14: [{ required: true, message: "样品长度14(mm)不能为空", trigger: "blur" }],
        yangpcd15: [{ required: true, message: "样品长度15(mm)不能为空", trigger: "blur" }],
        yangpcdzcd1: [{ required: true, message: "样品长度总长度1(mm)不能为空", trigger: "blur" }],
        yangpzl1: [{ required: true, message: "样品重量1(g)不能为空", trigger: "blur" }],
        lilzl1: [{ required: true, message: "理论重量1(kg/m)不能为空", trigger: "blur" }],
        zhonglpc1: [{ required: true, message: "重量偏差1(%)不能为空", trigger: "blur" }],
        gongczj2: [{ required: true, message: "公称直径2(mm)不能为空", trigger: "blur" }],
        gongcjmj2: [{ required: true, message: "公称截面积2(mm²)不能为空", trigger: "blur" }],
        yangpcd21: [{ required: true, message: "样品长度21(mm)不能为空", trigger: "blur" }],
        yangpcd22: [{ required: true, message: "样品长度22(mm)不能为空", trigger: "blur" }],
        yangpcd23: [{ required: true, message: "样品长度23(mm)不能为空", trigger: "blur" }],
        yangpcd24: [{ required: true, message: "样品长度24(mm)不能为空", trigger: "blur" }],
        yangpcd25: [{ required: true, message: "样品长度25(mm)不能为空", trigger: "blur" }],
        yangpcdzcd2: [{ required: true, message: "样品长度总长度2(mm)不能为空", trigger: "blur" }],
        yangpzl2: [{ required: true, message: "样品重量2(g)不能为空", trigger: "blur" }],
        lilzl2: [{ required: true, message: "理论重量2(kg/m)不能为空", trigger: "blur" }],
        zhonglpc2: [{ required: true, message: "重量偏差2(%)不能为空", trigger: "blur" }],
        gongczj3: [{ required: true, message: "公称直径3(mm)不能为空", trigger: "blur" }],
        gongcjmj3: [{ required: true, message: "公称截面积3(mm²)不能为空", trigger: "blur" }],
        yangpcd31: [{ required: true, message: "样品长度31(mm)不能为空", trigger: "blur" }],
        yangpcd32: [{ required: true, message: "样品长度32(mm)不能为空", trigger: "blur" }],
        yangpcd33: [{ required: true, message: "样品长度33(mm)不能为空", trigger: "blur" }],
        yangpcd34: [{ required: true, message: "样品长度34(mm)不能为空", trigger: "blur" }],
        yangpcd35: [{ required: true, message: "样品长度35(mm)不能为空", trigger: "blur" }],
        yangpcdzcd3: [{ required: true, message: "样品长度总长度3(mm)不能为空", trigger: "blur" }],
        yangpzl3: [{ required: true, message: "样品重量3(g)不能为空", trigger: "blur" }],
        lilzl3: [{ required: true, message: "理论重量3(kg/m)不能为空", trigger: "blur" }],
        zhonglpc3: [{ required: true, message: "重量偏差3(%)不能为空", trigger: "blur" }],
        fujsm: [{ required: true, message: "附加声明不能为空", trigger: "blur" }],
        jianc: [{ required: true, message: "检测不能为空", trigger: "blur" }],
        jil: [{ required: true, message: "记录不能为空", trigger: "blur" }],
        fuh: [{ required: true, message: "复核不能为空", trigger: "blur" }],
        riq: [{ required: true, message: "日期不能为空", trigger: "blur" }],
        shebIds: [{ required: true, message: "设备ids不能为空", trigger: "blur" }],
        pandyjIds: [{ required: true, message: "判断依据ids不能为空", trigger: "blur" }],
        jiancyjIds: [{ required: true, message: "检测依据ids不能为空", trigger: "blur" }]
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询钢材重量偏差试验检测记录列表 */
    getList() {
      this.loading = true;
      listGczlpcjlbBsInfo(this.queryParams).then((response) => {
        this.gczlpcjlbBsInfoList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        excelId: undefined,
        totalPage: undefined,
        page: undefined,
        jiancdwmc: undefined,
        jilbh: undefined,
        gongcmc: undefined,
        gongcbwyt: undefined,
        yangpmc: undefined,
        yangpbh: undefined,
        yangpsl: undefined,
        yangpzt: undefined,
        yangpsj: undefined,
        shiyjcrq: undefined,
        shiytjwd: undefined,
        shiytjsd: undefined,
        jiancyj: undefined,
        pandyj: undefined,
        zhuyyqsbmcjbh: undefined,
        quydd: undefined,
        daibsl: undefined,
        guigxh: undefined,
        pih: undefined,
        shengccj: undefined,
        gongczj1: undefined,
        gongcjmj1: undefined,
        yangpcd11: undefined,
        yangpcd12: undefined,
        yangpcd13: undefined,
        yangpcd14: undefined,
        yangpcd15: undefined,
        yangpcdzcd1: undefined,
        yangpzl1: undefined,
        lilzl1: undefined,
        zhonglpc1: undefined,
        gongczj2: undefined,
        gongcjmj2: undefined,
        yangpcd21: undefined,
        yangpcd22: undefined,
        yangpcd23: undefined,
        yangpcd24: undefined,
        yangpcd25: undefined,
        yangpcdzcd2: undefined,
        yangpzl2: undefined,
        lilzl2: undefined,
        zhonglpc2: undefined,
        gongczj3: undefined,
        gongcjmj3: undefined,
        yangpcd31: undefined,
        yangpcd32: undefined,
        yangpcd33: undefined,
        yangpcd34: undefined,
        yangpcd35: undefined,
        yangpcdzcd3: undefined,
        yangpzl3: undefined,
        lilzl3: undefined,
        zhonglpc3: undefined,
        fujsm: undefined,
        jianc: undefined,
        jil: undefined,
        fuh: undefined,
        riq: undefined,
        delFlag: undefined,
        createBy: undefined,
        createTime: undefined,
        updateBy: undefined,
        updateTime: undefined,
        shebIds: undefined,
        pandyjIds: undefined,
        jiancyjIds: undefined
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.excelId);
      this.single = selection.length !== 1;
      this.multiple = !selection.length;
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加钢材重量偏差试验检测记录";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.loading = true;
      this.reset();
      const excelId = row.excelId || this.ids;
      getGczlpcjlbBsInfo(excelId).then((response) => {
        this.loading = false;
        this.form = response.data;
        this.open = true;
        this.title = "修改钢材重量偏差试验检测记录";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate((valid) => {
        if (valid) {
          this.buttonLoading = true;
          if (this.form.excelId != null) {
            updateGczlpcjlbBsInfo(this.form)
              .then((response) => {
                this.$modal.msgSuccess("修改成功");
                this.open = false;
                this.getList();
              })
              .finally(() => {
                this.buttonLoading = false;
              });
          } else {
            addGczlpcjlbBsInfo(this.form)
              .then((response) => {
                this.$modal.msgSuccess("新增成功");
                this.open = false;
                this.getList();
              })
              .finally(() => {
                this.buttonLoading = false;
              });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const excelIds = row.excelId || this.ids;
      this.$modal
        .confirm('是否确认删除钢材重量偏差试验检测记录编号为"' + excelIds + '"的数据项？')
        .then(() => {
          this.loading = true;
          return delGczlpcjlbBsInfo(excelIds);
        })
        .then(() => {
          this.loading = false;
          this.getList();
          this.$modal.msgSuccess("删除成功");
        })
        .catch(() => {})
        .finally(() => {
          this.loading = false;
        });
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download(
        "report_gc/gczlpcjlbBsInfo/export",
        {
          ...this.queryParams
        },
        `gczlpcjlbBsInfo_${new Date().getTime()}.xlsx`
      );
    }
  }
};
</script>
